<?php
$this->pageTitle = 'Login - ' . Yii::app()->name;
?>


<header><h2>Login</h2></header>
<section>
    <div class="message info">Please login to continue.</div>

<?php
        $form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array('class' => 'clearfix',),
));
    ?>

    <p>
        <?php echo $form->textField($model, 'username', array('class' => 'full', 'placeholder' => 'Username')); ?>
        <?php echo $form->error($model, 'username'); ?>
    </p>

    <p>
        <?php echo $form->passwordField($model, 'password', array('class' => 'full', 'placeholder' => 'Password')); ?>
        <br><span><?php echo CHtml::link('I\'ve forgotten my password', array('user/resetPassword')); ?></span>
        <?php echo $form->error($model, 'password'); ?>
    </p>

    <?php echo $form->error($model, 'validation', array('class' => 'message error')); ?>

    <p class="clearfix">
        <?php echo CHtml::button('Login', array('class' => 'button button-gray fr', 'type' => 'submit')); ?>
    </p>
    <?php $this->endWidget(); ?>
    <ul>
        <li>
            <span>New user?</span>&nbsp;<?php echo CHtml::link('Register now!', array('user/create')); ?>
        </li>
    </ul>
</section>

